package com.example.mall.common.core.response;

import lombok.Getter;
import lombok.Setter;

/**
 * 统一异常响应格式
 *  - 格式:
 *  {
 *      code: 9999,
 *      message: "错误信息",
 *      reqeust: "请求方法 请求地址"
 *  }
 */
public class UnifyExceptionResponse extends BaseResponse {
    /** 请求信息: 请求法法 + 请求地址 */
    private String request;

    public String getRequest() {
        return request;
    }

    public void setRequest(String request) {
        this.request = request;
    }

    public UnifyExceptionResponse(Integer code, String message, String requestStr) {
        super(code, message);
        this.request = requestStr;
    }
}
